package com.pyue.eam.admin.api.entity.eam;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pyue.eam.admin.api.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.YearMonth;

/**
 * 系统年历史数据
 *
 * @date 2023-11-20 09:59:33
 */
@Data
@TableName("eam_history_data")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "系统年历史数据")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class EamHistoryDataEntity extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 历史类型_业务id拼接
     */
    @Schema(description = "历史类型_业务id拼接")
    private String hisTypeBiz;

    /**
     * 0单指标，1多指标
     */
    @Schema(description = "0单指标，1多指标")
    private String multiFlag;

    /**
     * 年月
     */
    @Schema(description = "年月")
    private YearMonth yearMonthValue;

    /**
     * 当月数据值
     */
    @Schema(description = "当月数据值")
    private Object bizData;

    /**
     * 预警值
     */
    @Schema(description = "预警值")
    private String warnValue;

    /**
     * 目标值
     */
    @Schema(description = "目标值")
    private String targetValue;

    /**
     * 分子
     */
    @Schema(description = "分子")
    private Double molecule;

    /**
     * 分母
     */
    @Schema(description = "分母")
    private Double denominator;

    /**
     * 业务数据追溯ID
     */
    @Schema(description = "业务数据追溯ID")
    private String bizTraceId;

    /**
     * 单位
     */
    @Schema(description = "单位")
    private String units;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;
}
